package tests.steps;

import cucumber.annotation.After;
import cucumber.annotation.Before;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

import javax.sql.DataSource;

public class ContextRefreshSteps {

    ApplicationContext context;
    JdbcTemplate jdbcTemplate;

    @Before
    public void setupFreshContext() {
        //context = new ClassPathXmlApplicationContext("test-application-context.xml");
        //jdbcTemplate = new JdbcTemplate((DataSource)context.getBean("dataSource"));
    }

    @After
    public void closeTest() {
        //System.out.println(jdbcTemplate.queryForObject("select first_name from Person", String.class));
    }

}
